{if ($smarty.get.tpl_reiting_module=='main' || !$smarty.get.tpl_reiting_module) && !$smarty.get.reiting_id}
<div style="border:1px solid #D6DBDE; padding:5px 0 5px 10px; background-color:#FFFFFF; margin:7px 0 7px 0">
	<a href="#" onClick="rating_reset_pn(3, 'reset_individual_rating',-1,'');" target="_self"><img src="_tvs_system_core_/design/img/admin/_icon_delete.gif" style="width:10px; height:10px; margin:0 5px 0 0">{t t='Išvalyti visus reitingus'}</a>
</div>
{elseif $smarty.get.tpl_reiting_module=='reitings'}
<div style="border:1px solid #D6DBDE; padding:5px 0 5px 10px; background-color:#FFFFFF; margin:7px 0 7px 0">
	<form name="reset_individual_rating" enctype="multipart/form-data" method="post">
	<input name="admin" type="hidden" value="1">
	<input name="module" type="hidden" value="reiting">
	<input name="referer" type="hidden" value="{ext->get_referer}">
	<input name="act" type="hidden" value="add_reiting">	
	
	<table cellpadding="0" cellspacing="0" class="MainTable"><tr>
	<td style="width:150px; text-align:right; padding-right:10px;">{t t='Sukurti nauja reitingą'}:</td>
	<td style="width:250px;"><input style="width:250px;" class="defaultInputText" name="name" value=""></td>
	<td style="width:100px; text-align:left; padding-left:10px;"><input onClick="submit();" type="button" value="{t t='popup_ok'}" class="defaultFormButton"></td>
	<td><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr></table>
	</form>
</div>
{/if}